package dryven.model.validation;

import dryven.request.http.Request;

public class HttpValidationFormValueCollection implements
		ValidationFormValueCollection {

	private Request request;
	
	public HttpValidationFormValueCollection(Request r) {
		request = r;
	}
	
	@Override
	public Iterable<String> getNames() {
		return request.getBodyParamNames();
	}

	@Override
	public String getValue(String name) {
		return request.getBodyParam(name);
	}

}
